﻿Imports Control_Vuelos_BE
Imports Control_Vuelos_ADO

Public Class ConsolidadoBL
    Private ReadOnly _Consolidado As New ConsolidadoADO()

    Public Function pr_ActualizarProvision(ByVal pConsolidado As V_ProvisionBE) As Boolean
        Return _Consolidado.pr_ActualizarProvision(pConsolidado)
    End Function

    Public Function pr_ActualizarProvisionManifiestoDetalle(ByVal pDProvision As D_ManifiestoBE, ByVal sTicket As String) As Boolean
        Return _Consolidado.pr_ActualizarProvisionManifiestoDetalle(pDProvision, sTicket)
    End Function

    Public Function pr_ActualizarProvisionManifiestoProducto(ByVal sVuelo As String, ByVal lFlag As Boolean) As Boolean
        Return _Consolidado.pr_ActualizarProvisionManifiestoProducto(sVuelo, lFlag)
    End Function

    Public Function pr_AsignaTicketManifiestoCabecera(ByVal sVuelo As String, ByVal sTicket As String) As Boolean
        Return _Consolidado.pr_AsignaTicketManifiestoCabecera(sVuelo, sTicket)
    End Function

    Public Function pr_BuscarCorrelativo(ByVal sAnoMes As String, sCodAsn As String) As String
        Return _Consolidado.pr_BuscarCorrelativo(sAnoMes, sCodAsn)
    End Function

    Public Function pr_CargarCabeceraManifiesto(ByVal sFchVuelo As String) As DataTable
        Return _Consolidado.pr_CargarCabeceraManifiesto(sFchVuelo)
    End Function

    Public Function pr_CargaCorrelativoTicket() As String
        Return _Consolidado.pr_CargaCorrelativoTicket()
    End Function

    Public Function pr_CargarDetalleManifiesto(ByVal sCodVuelo As String) As DataTable
        Return _Consolidado.pr_CargarDetalleManifiesto(sCodVuelo)
    End Function

    Public Function pr_GenerarAsiento(ByVal sTicket As String, sAnoMes As String, sCodAsn As String, sNroAsn As String, sCodusr As String) As String
        Return _Consolidado.pr_GenerarAsiento(sTicket, sAnoMes, sCodAsn, sNroAsn, sCodusr)
    End Function

    Public Function pr_GrabarAsientoCabecera(ByVal vAsn As V_AsientoBE) As Boolean
        Return _Consolidado.pr_GrabarAsientoCabecera(vAsn)
    End Function

    Public Function pr_GrabarAsientoDetalle(ByVal vAsn As V_AsientoBE) As Boolean
        Return _Consolidado.pr_GrabarAsientoDetalle(vAsn)
    End Function

    Public Function pr_GrabarCorrelativo(ByVal sTicket As String, sAnomes As String, sCodasn As String, sNroAsn As String) As Boolean
        Return _Consolidado.pr_GrabarCorrelativo(sTicket, sAnomes, sCodasn, sNroAsn)
    End Function

    Public Function pr_ListarConsolidado(ByVal sFiltro As String) As DataTable
        Return _Consolidado.pr_ListarConsolidado(sFiltro)
    End Function

    Public Function pr_ListarTickets(ByVal sFiltro As String) As DataTable
        Return _Consolidado.pr_ListarTickets(sFiltro)
    End Function

    Public Function pr_QuitarTicketManifiestoCabecera(ByVal sTicket As String) As Boolean
        Return _Consolidado.pr_QuitarTicketManifiestoCabecera(sTicket)
    End Function

    Public Function pr_TraerAnalisis(ByVal sCodEmpresa As String) As String
        Return _Consolidado.pr_TraerAnalisis(sCodEmpresa)
    End Function

    Public Function pr_TraerProvision(ByVal snroticket As String) As V_ProvisionBE
        Return _Consolidado.pr_TraerProvision(snroticket)
    End Function

    Public Function pr_VerificarCierreContable(ByVal sPeriodo As String) As Boolean
        Return _Consolidado.pr_VerificarCierreContable(sPeriodo)
    End Function

End Class